package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeeKaiyaoMapper;
import com.ruoyi.system.domain.FeeKaiyao;
import com.ruoyi.system.service.IFeeKaiyaoService;

/**
 * 开药缴费Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-27
 */
@Service
public class FeeKaiyaoServiceImpl implements IFeeKaiyaoService 
{
    @Autowired
    private FeeKaiyaoMapper feeKaiyaoMapper;

    /**
     * 查询开药缴费
     * 
     * @param id 开药缴费主键
     * @return 开药缴费
     */
    @Override
    public FeeKaiyao selectFeeKaiyaoById(Long id)
    {
        return feeKaiyaoMapper.selectFeeKaiyaoById(id);
    }

    /**
     * 查询开药缴费列表
     * 
     * @param feeKaiyao 开药缴费
     * @return 开药缴费
     */
    @Override
    public List<FeeKaiyao> selectFeeKaiyaoList(FeeKaiyao feeKaiyao)
    {
        return feeKaiyaoMapper.selectFeeKaiyaoList(feeKaiyao);
    }

    /**
     * 新增开药缴费
     * 
     * @param feeKaiyao 开药缴费
     * @return 结果
     */
    @Override
    public int insertFeeKaiyao(FeeKaiyao feeKaiyao)
    {
        return feeKaiyaoMapper.insertFeeKaiyao(feeKaiyao);
    }

    /**
     * 修改开药缴费
     * 
     * @param feeKaiyao 开药缴费
     * @return 结果
     */
    @Override
    public int updateFeeKaiyao(FeeKaiyao feeKaiyao)
    {
        return feeKaiyaoMapper.updateFeeKaiyao(feeKaiyao);
    }

    /**
     * 批量删除开药缴费
     * 
     * @param ids 需要删除的开药缴费主键
     * @return 结果
     */
    @Override
    public int deleteFeeKaiyaoByIds(Long[] ids)
    {
        return feeKaiyaoMapper.deleteFeeKaiyaoByIds(ids);
    }

    /**
     * 删除开药缴费信息
     * 
     * @param id 开药缴费主键
     * @return 结果
     */
    @Override
    public int deleteFeeKaiyaoById(Long id)
    {
        return feeKaiyaoMapper.deleteFeeKaiyaoById(id);
    }
}
